package com.example.demo.demos.pojo;

import java.io.Serializable;

/**
 * @author lyh
 * @date 2025/5/7 9:37
 */
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name;

    private Integer age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void study(String someThing){
        System.out.println(someThing);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
